<!DOCTYPE html>
<html lang="en"  xmlns:th="http://www.thymeleaf.org">
<head th:replace="_fragment::head(~{::title})">
    <meta charset="UTF-8">
    <meta name=viewport content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no">
    <title>CodeMan丶|归档</title>
    <link href="../static/css/semantic.min.css" rel="stylesheet">
    <link href="../static/css/style.css" rel="stylesheet">
</head>
<body>
<!--导航 -->
<nav th:replace="_fragment::menu(0)" class="ui inverted attached segment m-padding-tb-mini m-shadow-small">
    <div class="ui container">
        <div class="ui inverted secondary stackable menu">
            <h2 class="ui teal header item">我的博客</h2>
            <a href="#" class="m-item item m-mobile-hide"><i class="home mini icon"></i>首页</a>
            <a href="#" class="m-item item m-mobile-hide"><i class="idea mini icon "></i>分类</a>
            <a href="#" class="m-item item m-mobile-hide"><i class="tags mini icon"></i>标签</a>
            <a href="#" class="m-item item m-mobile-hide"><i class="clone mini icon"></i>归档</a>
            <a href="#" class="m-item item m-mobile-hide"><i class="info mini icon"></i>关于我</a>
            <div class="right m-item item m-mobile-hide">
                <div class="ui transparent inverted icon input">
                    <input type="text" placeholder="Search...">
                    <i class="search link icon"></i>
                </div>
            </div>
        </div>
    </div>
    <div class="ui menu toggle black icon button m-right-top m-mobile-show">
        <i class="sidebar icon"></i>
    </div>
</nav>

<!-- 中间内容 -->
<div class="m-container-small m-padding-tb-small m-container-height">
    <div class="ui container">
        <!--header -->
        <div class="ui top attached segment">
            <div class="ui middle aligned two column grid">
                <div class="column">
                    <h3 class="ui teal header">归档</h3>
                </div>
                <div class="column right aligned">
                    共 <h3 class="ui orange header m-inline-block" th:text="${total}">213</h3> 篇
                </div>
            </div>
        </div>
        <div th:each="item:${list}" class="m-margin-top-small">
            <h2 class="ui center aligned header" th:text="${item.year}">2020</h2>
            <div class="ui fluid vertical menu m-padding-tb-mini">
                <a href="#" th:href="@{//blog/{id}(id=${blog.id})}" class="item" th:each="blog:${item.list}">
                    <div class="m-inline-block">
                        <i class="mini teal circle icon"></i> <span class="m-margin-left-small" th:text="${blog.title}">关于我的帅,你一无所知</span>
                        <div class="ui teal basic left pointing label m-padding-mini" th:text="${#dates.format(blog.updateTime,'MM-dd')}">9月03日</div>
                    </div>
                    <div class="ui orange basic label m-padding-mini" th:text="${blog.flag}">原创</div>

                </a>
            </div>
        </div>
        <!--/*-->
        <div class="m-margin-top-small">
            <h2 class="ui center aligned header">2019</h2>
            <div class="ui fluid vertical menu m-padding-tb-mini">
                <a href="#" class="item">
                    <div class="m-inline-block">
                        <i class="mini teal circle icon"></i> 关于我的帅
                        <div class="ui teal basic left pointing label m-padding-mini">9月03日</div>
                    </div>
                    <div class="ui orange basic label m-padding-mini">原创</div>

                </a>
                <a href="#" class="item">
                    <div class="m-inline-block">
                        <i class="mini teal circle icon"></i> 关于我的帅
                        <div class="ui teal basic left pointing label m-padding-mini">9月03日</div>
                    </div>
                    <div class="ui orange basic label m-padding-mini">原创</div>

                </a>
                <a href="#" class="item">
                    <div class="m-inline-block">
                        <i class="mini teal circle icon"></i> 关于我的帅
                        <div class="ui teal basic left pointing label m-padding-mini">9月03日</div>
                    </div>
                    <div class="ui orange basic label m-padding-mini">原创</div>

                </a>
            </div>
        </div>
        <div class="m-margin-top-small">
            <h2 class="ui center aligned header">2018</h2>
            <div class="ui fluid vertical menu m-padding-tb-mini">
                <a href="#" class="item">
                    <div class="m-inline-block">
                        <i class="mini teal circle icon"></i> 关于我的帅
                        <div class="ui teal basic left pointing label m-padding-mini">9月03日</div>
                    </div>
                    <div class="ui orange basic label m-padding-mini">原创</div>

                </a>
                <a href="#" class="item">
                    <div class="m-inline-block">
                        <i class="mini teal circle icon"></i> 关于我的帅
                        <div class="ui teal basic left pointing label m-padding-mini">9月03日</div>
                    </div>
                    <div class="ui orange basic label m-padding-mini">原创</div>

                </a>
                <a href="#" class="item">
                    <div class="m-inline-block">
                        <i class="mini teal circle icon"></i> 关于我的帅
                        <div class="ui teal basic left pointing label m-padding-mini">9月03日</div>
                    </div>
                    <div class="ui orange basic label m-padding-mini">原创</div>

                </a>
            </div>
        </div>
        <!--*/-->

    </div>
</div>

<!-- 底部footer -->
<footer th:replace="_fragment::footer" class="ui inverted vertical segment m-margin-top-small">
    <div class="ui center aligned container">
        <div class="ui stackable inverted divided grid m-padding-tb-big">
            <div class="three wide column">
                <div class="ui item">
                    <img src="../static/images/girl.jpeg" alt="" class="ui rounded image m-inline-block" style="width: 100px;">
                </div>
            </div>
            <div class="three wide column">
                <h4 class="ui inverted header m-text-thin m-text-spaced">最新博客</h4>
                <div class="ui inverted link list">
                    <a href="#" class="item">用户故事{ user story }</a>
                    <a href="#" class="item">用户故事{ user story }</a>
                    <a href="#" class="item">用户故事{ user story }</a>
                </div>
            </div>
            <div class="three wide column">
                <h4 class="ui inverted header m-text-thin m-text-spaced">最新博客</h4>
                <div class="ui inverted link list">
                    <a href="#" class="item">用户故事{ user story }</a>
                    <a href="#" class="item">用户故事{ user story }</a>
                    <a href="#" class="item">用户故事{ user story }</a>
                </div>
            </div>
            <div class="seven wide column">
                <h4 class="ui inverted header m-text-thin m-text-spaced">最新博客</h4>
                <p class="m-text-thin m-text-spaced m-opacity-mini">XXXXX</p>
            </div>
        </div>
        <div class="ui inverted selection divider"></div>
        <p class="m-text-thin m-text-spaced m-opacity-tiny">Copyright © 2020 - 2021 Mr.Peng</p>
    </div>
</footer>

<!--/*/<th:block th:replace="_fragment::script">/*/-->
<script src="../static/js/jquery.min.js"></script>
<script src="../static/js/semantic.min.js"></script>
<!--/*/</th:block>/*/-->
<script>
    $('.menu.toggle').click(function () {
      $('.m-item').toggleClass('m-mobile-hide')
    });
    $('#payButton').popup({
      popup: $('.payQR.popup'),
      on: 'click',
      position: 'bottom center'
    })
</script>
</body>
</html>